﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCPnuts.ISkyDiskFileSystem.Interfaces;
using CCPnuts.Pack;
using CCPnuts.ISkyDiskFileSystem;
using HgCo.WindowsLive.SkyDrive;

namespace SkyDiskFileSystem
{
    internal abstract class SkyElement : PackedBase, I_SkyElement
    {
        protected WebFolderItemInfo Item { get; private set; }

        internal SkyElement(PackedInfo info, I_SkyElementContainer parent, WebFolderItemInfo item)
            : base(info)
        {
            Parent = parent;
            Item = item;
        }

        #region I_SkyElement Members

        public virtual string Name
        {
            get { return Item.Name; }
            set { Item.Name = value; }
        }

        public I_SkyElementContainer Parent
        {
            get;
            private set;
        }

        public I_Downloader Download(string targetPath)
        {
            throw new NotImplementedException();
        }

        public void CopyTo(I_SkyElementContainer tarDir)
        {
            throw new NotImplementedException();
        }

        public void MoveTo(I_SkyElementContainer tarDir)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
